.class Lcom/baidu/c;
.super Ljava/lang/Object;


# static fields
.field public static a:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lcom/baidu/k;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static b:Lcom/baidu/c;

.field private static final d:Ljava/text/SimpleDateFormat;

.field private static i:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Landroid/content/Context;",
            ">;"
        }
    .end annotation
.end field

.field private static l:Z


# instance fields
.field private c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lcom/baidu/k;",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation
.end field

.field private e:Ljava/lang/String;

.field private f:Z

.field private g:Z

.field private h:Ljava/lang/String;

.field private j:Lorg/json/JSONObject;

.field private k:Lorg/json/JSONObject;

.field private m:Z


# direct methods
.method static constructor <clinit>()V
    .locals 8

    const/4 v7, 0x0

    new-instance v0, Lcom/baidu/c;

    invoke-direct {v0}, Lcom/baidu/c;-><init>()V

    sput-object v0, Lcom/baidu/c;->b:Lcom/baidu/c;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/baidu/c;->a:Ljava/util/Map;

    invoke-static {}, Lcom/baidu/k;->a()[Lcom/baidu/k;

    move-result-object v0

    array-length v1, v0

    move v2, v7

    :goto_0
    if-ge v2, v1, :cond_0

    aget-object v3, v0, v2

    sget-object v4, Lcom/baidu/c;->a:Ljava/util/Map;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "__sdk_"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v3}, Lcom/baidu/k;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v4, v3, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyyMMdd"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcom/baidu/c;->d:Ljava/text/SimpleDateFormat;

    sput-boolean v7, Lcom/baidu/c;->l:Z

    return-void
.end method

.method private constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/baidu/c;->c:Ljava/util/Map;

    return-void
.end method

.method private a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;
    .locals 4

    const/4 v2, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/baidu/c;->c:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/baidu/c;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/baidu/c;->c:Ljava/util/Map;

    sget-object v0, Lcom/baidu/c;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v0

    invoke-static {v0, v3}, Lcom/baidu/w;->a(Ljava/net/URL;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/baidu/c;->c:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_4

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lcom/baidu/c;->a:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    invoke-static {v3, v0, p0}, Lcom/baidu/w;->b(ZLandroid/content/Context;Ljava/lang/String;)Z

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "no resource"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_1
    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    sget-object v0, Lcom/baidu/c;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v3, v1, v0}, Lcom/baidu/w;->c(ZLandroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v1, p0, Lcom/baidu/c;->c:Ljava/util/Map;

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v2

    sget-object v0, Lcom/baidu/c;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v3, v2, v0}, Lcom/baidu/w;->d(ZLandroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/baidu/c;->c:Ljava/util/Map;

    if-eqz p2, :cond_3

    sget-object v1, Landroid/graphics/Bitmap$Config;->ALPHA_8:Landroid/graphics/Bitmap$Config;

    :goto_1
    invoke-static {v2, v2, v1}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_3
    sget-object v1, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/baidu/c;->c:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/graphics/Bitmap;

    return-object p0
.end method

.method public static a()Lcom/baidu/c;
    .locals 1

    sget-object v0, Lcom/baidu/c;->b:Lcom/baidu/c;

    return-object v0
.end method

.method public static a(Ljava/lang/String;)Ljava/net/URL;
    .locals 3

    const-class v0, Lcom/baidu/c;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "/res/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Class;->getResource(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/baidu/c;)Lorg/json/JSONObject;
    .locals 1

    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    return-object v0
.end method

.method public static a(Landroid/content/Context;)V
    .locals 1

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    sput-object v0, Lcom/baidu/c;->i:Ljava/lang/ref/WeakReference;

    sget-boolean v0, Lcom/baidu/c;->l:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    sput-boolean v0, Lcom/baidu/c;->l:Z

    sget-object v0, Lcom/baidu/c;->b:Lcom/baidu/c;

    invoke-direct {v0}, Lcom/baidu/c;->s()V

    :cond_0
    return-void
.end method

.method private a(Lorg/json/JSONObject;)V
    .locals 5

    :try_start_0
    invoke-virtual {p1}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "content"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "w_picurl"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/baidu/w;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v3

    invoke-static {v2, v3, v1}, Lcom/baidu/w;->c(ZLandroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "AdCache.transferRes"

    invoke-static {v2, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v2, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v3

    invoke-static {v1}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v4

    invoke-static {v2, v3, v4, v1}, Lcom/baidu/w;->a(ZLandroid/content/Context;Ljava/net/URL;Ljava/lang/String;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "AdCache.transferRes"

    const-string v2, ""

    invoke-static {v1, v2, v0}, Lcom/baidu/bk;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/baidu/c;)Lorg/json/JSONObject;
    .locals 1

    iget-object v0, p0, Lcom/baidu/c;->j:Lorg/json/JSONObject;

    return-object v0
.end method

.method static synthetic c(Lcom/baidu/c;)V
    .locals 0

    invoke-direct {p0}, Lcom/baidu/c;->u()V

    return-void
.end method

.method static synthetic q()Ljava/lang/ref/WeakReference;
    .locals 1

    sget-object v0, Lcom/baidu/c;->i:Ljava/lang/ref/WeakReference;

    return-object v0
.end method

.method private r()Landroid/content/Context;
    .locals 1

    sget-object v0, Lcom/baidu/c;->i:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/content/Context;

    return-object p0
.end method

.method private s()V
    .locals 11

    const/4 v10, 0x0

    const/4 v9, 0x1

    const/4 v8, 0x0

    const-string v0, "AdCache.init"

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    const/4 v0, 0x0

    :try_start_0
    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v0, v1, v2}, Lcom/baidu/w;->c(ZLandroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string v0, "AdCache.init"

    const-string v1, "copying new cahce.json"

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    const-string v0, "__local_cache.json"

    invoke-static {v0}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v0

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v2}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v2

    const-string v3, "__local_cache.json"

    invoke-static {v0, v1, v2, v3}, Lcom/baidu/w;->a(ZLandroid/content/Context;Ljava/net/URL;Ljava/lang/String;)Z

    move v0, v9

    move-object v1, v10

    :goto_0
    if-nez v1, :cond_0

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v2

    const-string v3, "__local_cache.json"

    invoke-static {v1, v2, v3}, Lcom/baidu/w;->a(ZLandroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    iput-object v2, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    :cond_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    iput-object v2, p0, Lcom/baidu/c;->j:Lorg/json/JSONObject;

    const-string v2, "AdCache"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "raw cache length: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v1, p0, Lcom/baidu/c;->j:Lorg/json/JSONObject;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    if-nez v1, :cond_5

    :cond_1
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "displayCache == null || cache == null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception v0

    const-string v1, "AdCache.init"

    const-string v2, ""

    invoke-static {v1, v2, v0}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :goto_1
    return-void

    :cond_2
    const/4 v0, 0x0

    :try_start_1
    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    const-string v3, "{\"install\": 11010,\"hangup\": false,\"stopped\": false,\"index_server\": \"http://mobads.baidu.com:80\",\"text\": {},\"image\": {},\"app\": {},\"click\": {}}"

    const/4 v4, 0x0

    invoke-static {v0, v1, v2, v3, v4}, Lcom/baidu/w;->a(ZLandroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V

    move v0, v9

    move-object v1, v10

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v0, v1, v2}, Lcom/baidu/w;->a(ZLandroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v0

    :try_start_2
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    iput-object v1, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    :try_start_3
    const-string v1, "__local_cache.json"

    invoke-static {v1}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v1

    if-eqz v1, :cond_4

    new-instance v1, Lorg/json/JSONObject;

    const-string v2, "__local_cache.json"

    invoke-static {v2}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/w;->a(Ljava/net/URL;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    :goto_2
    const-string v2, "install"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v1

    iget-object v3, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v4, "install"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v3

    const-string v5, "AdCache.init"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "newVersion: "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, " oldVersion: "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    cmp-long v1, v1, v3

    if-eqz v1, :cond_9

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v0, v1, v2}, Lcom/baidu/w;->b(ZLandroid/content/Context;Ljava/lang/String;)Z

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v2}, Lcom/baidu/c;->a(Ljava/lang/String;)Ljava/net/URL;

    move-result-object v2

    const-string v3, "__local_cache.json"

    invoke-static {v0, v1, v2, v3}, Lcom/baidu/w;->a(ZLandroid/content/Context;Ljava/net/URL;Ljava/lang/String;)Z

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    move v0, v9

    move-object v1, v10

    goto/16 :goto_0

    :catch_1
    move-exception v0

    const-string v0, "AdCache"

    const-string v1, "Cache parsing error"

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v0, v1, v2}, Lcom/baidu/w;->b(ZLandroid/content/Context;Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/baidu/c;->s()V

    goto/16 :goto_1

    :cond_4
    new-instance v1, Lorg/json/JSONObject;

    const-string v2, "{\"install\": 11010,\"hangup\": false,\"stopped\": false,\"index_server\": \"http://mobads.baidu.com:80\",\"text\": {},\"image\": {},\"app\": {},\"click\": {}}"

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    goto :goto_2

    :cond_5
    if-eqz v0, :cond_7

    invoke-static {}, Lcom/baidu/t;->a()[Lcom/baidu/t;

    move-result-object v0

    array-length v1, v0

    move v2, v8

    :goto_3
    if-ge v2, v1, :cond_6

    aget-object v3, v0, v2

    iget-object v4, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    invoke-virtual {v3}, Lcom/baidu/t;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    invoke-direct {p0, v3}, Lcom/baidu/c;->a(Lorg/json/JSONObject;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_3

    :cond_6
    invoke-virtual {p0}, Lcom/baidu/c;->d()V

    :cond_7
    invoke-direct {p0}, Lcom/baidu/c;->t()Z

    move-result v0

    if-nez v0, :cond_8

    const-string v0, "AdCache"

    const-string v1, "Validation: [Failed]"

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v0, v1, v2}, Lcom/baidu/w;->b(ZLandroid/content/Context;Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/baidu/c;->s()V

    goto/16 :goto_1

    :cond_8
    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v1, "index_server"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/c;->e:Ljava/lang/String;

    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v1, "hangup"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/baidu/c;->f:Z

    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v1, "stopped"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/baidu/c;->g:Z

    const-string v0, "android_%s"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v3, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v4, "install"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/c;->h:Ljava/lang/String;
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0

    goto/16 :goto_1

    :cond_9
    move-object v1, v0

    move v0, v8

    goto/16 :goto_0
.end method

.method private t()Z
    .locals 7

    const/4 v6, 0x0

    const-string v0, "AdCache.validate"

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-static {}, Lcom/baidu/t;->a()[Lcom/baidu/t;

    move-result-object v1

    array-length v2, v1

    move v3, v6

    :goto_0
    if-ge v3, v2, :cond_0

    aget-object v4, v1, v3

    iget-object v5, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    invoke-virtual {v4}, Lcom/baidu/t;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_0
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/json/JSONObject;

    invoke-virtual {v0}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v2

    :cond_2
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    const-string v4, "content"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    const-string v4, "w_picurl"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    const-string v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_2

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v4

    invoke-static {v3}, Lcom/baidu/w;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v4, v3}, Lcom/baidu/w;->c(ZLandroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_2

    move v0, v6

    :goto_1
    return v0

    :cond_3
    const/4 v0, 0x1

    goto :goto_1
.end method

.method private u()V
    .locals 4

    const/4 v3, 0x0

    const-string v0, "AdCache.flush"

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    const-string v0, "{}"

    :try_start_0
    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v1

    const-string v2, "__local_cache.json"

    invoke-static {v3, v1, v2, v0, v3}, Lcom/baidu/w;->a(ZLandroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V

    return-void

    :catch_0
    move-exception v0

    new-instance v0, Ljava/lang/RuntimeException;

    invoke-direct {v0}, Ljava/lang/RuntimeException;-><init>()V

    throw v0
.end method

.method private v()V
    .locals 11

    iget-boolean v0, p0, Lcom/baidu/c;->m:Z

    if-nez v0, :cond_3

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/baidu/c;->m:Z

    const-string v0, "AdCache.validateClicklog"

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v2, "click"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    invoke-virtual {v1}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v4, "click"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    const-string v4, "record"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    const/4 v4, 0x0

    :goto_0
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v5

    if-ge v4, v5, :cond_0

    invoke-virtual {v3, v4}, Lorg/json/JSONArray;->isNull(I)Z

    move-result v5

    if-eqz v5, :cond_2

    :cond_1
    :goto_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_2
    invoke-virtual {v3, v4}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v5

    const-string v6, "date"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    const-wide/32 v9, 0xf731400

    sub-long/2addr v7, v9

    invoke-direct {v6, v7, v8}, Ljava/util/Date;-><init>(J)V

    sget-object v7, Lcom/baidu/c;->d:Ljava/text/SimpleDateFormat;

    invoke-virtual {v7, v5}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v7

    invoke-virtual {v7, v6}, Ljava/util/Date;->before(Ljava/util/Date;)Z

    move-result v6

    if-eqz v6, :cond_1

    const-string v6, "AdCache.validateClicklog"

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v6, v5}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    sget-object v5, Lorg/json/JSONObject;->NULL:Ljava/lang/Object;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONArray;->put(ILjava/lang/Object;)Lorg/json/JSONArray;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_1

    :catch_0
    move-exception v1

    :try_start_1
    const-string v2, "AdCache.validateClicklog"

    const-string v3, ""

    invoke-static {v2, v3, v1}, Lcom/baidu/bk;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :goto_2
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_3
    return-void

    :cond_4
    :try_start_2
    invoke-direct {p0}, Lcom/baidu/c;->u()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/text/ParseException; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_2

    :catch_1
    move-exception v1

    :try_start_3
    const-string v2, "AdCache.validateClicklog"

    const-string v3, ""

    invoke-static {v2, v3, v1}, Lcom/baidu/bk;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_2

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    throw v1
.end method

.method private w()Ljava/lang/String;
    .locals 4

    sget-object v0, Lcom/baidu/c;->d:Ljava/text/SimpleDateFormat;

    new-instance v1, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public a(Lcom/baidu/t;)Ljava/util/Vector;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/t;",
            ")",
            "Ljava/util/Vector",
            "<",
            "Lcom/baidu/Ad;",
            ">;"
        }
    .end annotation

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    :try_start_0
    iget-object v1, p0, Lcom/baidu/c;->j:Lorg/json/JSONObject;

    invoke-virtual {p1}, Lcom/baidu/t;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    invoke-virtual {v1}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v4

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v5

    const-string v6, "content"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v4

    invoke-static {v5, v4, v3}, Lcom/baidu/Ad;->a(Landroid/content/Context;Lorg/json/JSONObject;Ljava/lang/String;)Lcom/baidu/Ad;

    move-result-object v3

    if-eqz v3, :cond_0

    invoke-virtual {v0, v3}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    const-string v2, "AdCache.init"

    const-string v3, ""

    invoke-static {v2, v3, v1}, Lcom/baidu/bk;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :goto_1
    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    if-nez v1, :cond_1

    const-string v0, "AdCache.getAds"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "No Ads("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v0, 0x0

    :cond_1
    return-object v0

    :cond_2
    :try_start_1
    new-instance v1, Lcom/baidu/g;

    invoke-direct {v1, p0}, Lcom/baidu/g;-><init>(Lcom/baidu/c;)V

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1
.end method

.method public a(Lcom/baidu/t;I)V
    .locals 1

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/baidu/r;->k(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    new-instance v0, Lcom/baidu/h;

    invoke-direct {v0, p0, p1}, Lcom/baidu/h;-><init>(Lcom/baidu/c;Lcom/baidu/t;)V

    invoke-virtual {v0}, Lcom/baidu/h;->start()V

    goto :goto_0
.end method

.method public a(Lcom/baidu/t;JLorg/json/JSONObject;)V
    .locals 8

    const/4 v7, 0x1

    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    invoke-virtual {p1}, Lcom/baidu/t;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V

    const-string v3, "content"

    invoke-virtual {v2, v3, p4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-direct {p0}, Lcom/baidu/c;->u()V

    const-string v2, "AdCache.updateAd"

    const-string v3, "[%d] at [%d]"

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x1

    invoke-virtual {v1}, Lorg/json/JSONObject;->length()I

    move-result v1

    sub-int/2addr v1, v7

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    aput-object v1, v4, v5

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public a(Z)V
    .locals 1

    iput-boolean p1, p0, Lcom/baidu/c;->f:Z

    new-instance v0, Lcom/baidu/i;

    invoke-direct {v0, p0, p1}, Lcom/baidu/i;-><init>(Lcom/baidu/c;Z)V

    invoke-virtual {v0}, Lcom/baidu/i;->start()V

    return-void
.end method

.method public a(Lcom/baidu/Ad;Ljava/util/Map;)Z
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/Ad;",
            "Ljava/util/Map",
            "<",
            "Lcom/baidu/ay;",
            "Ljava/lang/Integer;",
            ">;)Z"
        }
    .end annotation

    const/4 v8, 0x0

    const-string v0, "AdCache.setClicklog"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    if-nez p1, :cond_0

    move v0, v8

    :goto_0
    return v0

    :cond_0
    invoke-direct {p0}, Lcom/baidu/c;->v()V

    iget-object v1, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    const-string v2, "click"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-virtual {p1}, Lcom/baidu/Ad;->m()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    const-string v4, "clklogurl"

    invoke-virtual {p1}, Lcom/baidu/Ad;->h()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v4, "record"

    new-instance v5, Lorg/json/JSONArray;

    invoke-direct {v5}, Lorg/json/JSONArray;-><init>()V

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_1
    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    const-string v2, "record"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    move v2, v8

    :goto_1
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v2, v3, :cond_2

    invoke-virtual {v0, v2}, Lorg/json/JSONArray;->isNull(I)Z

    move-result v3

    if-nez v3, :cond_4

    invoke-direct {p0}, Lcom/baidu/c;->w()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    const-string v5, "date"

    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    :cond_2
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ne v2, v3, :cond_3

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    const-string v4, "date"

    invoke-direct {p0}, Lcom/baidu/c;->w()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v4, "stamp"

    invoke-static {}, Lcom/baidu/r;->d()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v4, "click"

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v4, "show"

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v4, "phone"

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    invoke-virtual {v0, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    :cond_3
    invoke-virtual {v0, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    invoke-static {}, Lcom/baidu/ay;->a()[Lcom/baidu/ay;

    move-result-object v3

    array-length v4, v3

    move v5, v8

    :goto_2
    if-ge v5, v4, :cond_5

    aget-object v0, v3, v5

    invoke-virtual {v0}, Lcom/baidu/ay;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v7

    invoke-interface {p2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    add-int/2addr v0, v7

    invoke-virtual {v2, v6, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    add-int/lit8 v0, v5, 0x1

    move v5, v0

    goto :goto_2

    :cond_4
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_5
    invoke-direct {p0}, Lcom/baidu/c;->u()V

    const-string v0, "AdCache.setClicklog"

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v0, 0x1

    :try_start_1
    monitor-exit v1

    goto/16 :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :catch_0
    move-exception v0

    :try_start_2
    const-string v2, "AdCache.setClicklog"

    const-string v3, ""

    invoke-static {v2, v3, v0}, Lcom/baidu/bk;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    monitor-exit v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move v0, v8

    goto/16 :goto_0
.end method

.method public b()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/baidu/c;->h:Ljava/lang/String;

    return-object v0
.end method

.method public b(Lcom/baidu/t;)V
    .locals 4

    iget-object v0, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    invoke-virtual {p1}, Lcom/baidu/t;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    invoke-virtual {v1}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    const-string v2, "AdCache.clearAds"

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    invoke-interface {v1}, Ljava/util/Iterator;->remove()V

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    :cond_0
    :try_start_1
    invoke-direct {p0}, Lcom/baidu/c;->u()V

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public b(Z)V
    .locals 1

    iput-boolean p1, p0, Lcom/baidu/c;->g:Z

    new-instance v0, Lcom/baidu/j;

    invoke-direct {v0, p0, p1}, Lcom/baidu/j;-><init>(Lcom/baidu/c;Z)V

    invoke-virtual {v0}, Lcom/baidu/j;->start()V

    return-void
.end method

.method public c()V
    .locals 3

    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    iget-object v1, p0, Lcom/baidu/c;->k:Lorg/json/JSONObject;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/baidu/c;->j:Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    const-string v1, "AdCache.refresh"

    const-string v2, ""

    invoke-static {v1, v2, v0}, Lcom/baidu/bk;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method public d()V
    .locals 14

    const-wide/32 v12, 0x100000

    const/high16 v11, 0x10

    const/4 v10, 0x0

    const-string v0, "AdCache.validateResVolumn"

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object v0

    sget-object v1, Lcom/baidu/c;->a:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v1

    new-instance v2, Lcom/baidu/d;

    invoke-direct {v2, p0, v1}, Lcom/baidu/d;-><init>(Lcom/baidu/c;Ljava/util/Collection;)V

    invoke-virtual {v0, v2}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object v1

    const-wide/16 v2, 0x0

    array-length v4, v1

    move-wide v5, v2

    move v2, v10

    :goto_0
    if-ge v2, v4, :cond_0

    aget-object v3, v1, v2

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3}, Ljava/io/File;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v3}, Ljava/io/File;->length()J

    move-result-wide v8

    invoke-virtual {v7, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    invoke-virtual {v3}, Ljava/io/File;->length()J

    move-result-wide v7

    add-long/2addr v5, v7

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    const-string v1, "AdCache.validateResVolumn"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    cmp-long v1, v5, v12

    if-gtz v1, :cond_2

    :cond_1
    return-void

    :cond_2
    new-instance v1, Lcom/baidu/e;

    invoke-direct {v1, p0}, Lcom/baidu/e;-><init>(Lcom/baidu/c;)V

    invoke-virtual {v0, v1}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object v0

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    array-length v2, v0

    move v3, v10

    :goto_1
    if-ge v3, v2, :cond_3

    aget-object v4, v0, v3

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_3
    new-instance v0, Lcom/baidu/f;

    invoke-direct {v0, p0}, Lcom/baidu/f;-><init>(Lcom/baidu/c;)V

    invoke-static {v1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    move v2, v10

    move-wide v3, v5

    :goto_2
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v2, v0, :cond_1

    cmp-long v0, v3, v12

    if-lez v0, :cond_1

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0}, Ljava/io/File;->lastModified()J

    move-result-wide v6

    invoke-virtual {v5, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v6

    invoke-virtual {v5, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v5

    sub-long/2addr v3, v5

    invoke-direct {p0}, Lcom/baidu/c;->r()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v10, v5, v0}, Lcom/baidu/w;->b(ZLandroid/content/Context;Ljava/lang/String;)Z

    const-string v0, "AdCache.validateResVolumn"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "/"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v0, v5}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_2
.end method

.method public e()Z
    .locals 3

    const-string v0, "AdCache.isHangup"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-boolean v2, p0, Lcom/baidu/c;->f:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    iget-boolean v0, p0, Lcom/baidu/c;->f:Z

    return v0
.end method

.method public f()Z
    .locals 3

    const-string v0, "AdCache.isStopped"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-boolean v2, p0, Lcom/baidu/c;->g:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    iget-boolean v0, p0, Lcom/baidu/c;->g:Z

    return v0
.end method

.method public g()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/baidu/c;->e:Ljava/lang/String;

    return-object v0
.end method

.method public h()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->c:Lcom/baidu/k;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public i()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->e:Lcom/baidu/k;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public j()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->b:Lcom/baidu/k;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public k()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->d:Lcom/baidu/k;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public l()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->h:Lcom/baidu/k;

    const/4 v1, 0x1

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public m()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->a:Lcom/baidu/k;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public n()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->f:Lcom/baidu/k;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public o()Landroid/graphics/Bitmap;
    .locals 2

    sget-object v0, Lcom/baidu/k;->g:Lcom/baidu/k;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/baidu/c;->a(Lcom/baidu/k;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public p()I
    .locals 1

    const/4 v0, 0x5

    return v0
.end method
